package com.zangs.emqx_expand.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zangs.emqx_expand.common.annotation.Excel;
import com.zangs.emqx_expand.common.core.domain.BaseEntity;

/**
 * 接口密钥管理对象 app_user
 * 
 *
 * @since 2025-01-20
 */
public class AppUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long appUserId;

    /** 密钥标题 */
    @Excel(name = "密钥标题")
    private String title;

    /** appId */
    @Excel(name = "appId")
    private String appId;

    /** appSecret */
    @Excel(name = "appSecret")
    private String appSecret;

    /** 过期时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "过期时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date expirationDate;

    public void setAppUserId(Long appUserId) 
    {
        this.appUserId = appUserId;
    }

    public Long getAppUserId() 
    {
        return appUserId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setAppId(String appId) 
    {
        this.appId = appId;
    }

    public String getAppId() 
    {
        return appId;
    }
    public void setAppSecret(String appSecret) 
    {
        this.appSecret = appSecret;
    }

    public String getAppSecret() 
    {
        return appSecret;
    }
    public void setExpirationDate(Date expirationDate) 
    {
        this.expirationDate = expirationDate;
    }

    public Date getExpirationDate() 
    {
        return expirationDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("appUserId", getAppUserId())
            .append("title", getTitle())
            .append("appId", getAppId())
            .append("appSecret", getAppSecret())
            .append("expirationDate", getExpirationDate())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
